<template>
  <el-container style="height: 800px; border: 1px solid #eee">
    <el-aside width="200px" style="background-color: rgb(238, 241, 246)">
      <leftNav>
        <div slot="topOfnav">
          <router-link to="/home">
            <i class="el-icon-s-home"></i>Home
          </router-link>
        </div>
      </leftNav>
    </el-aside>
    <el-container>
      <el-header style="text-align: right; font-size: 12px">
        <Header />
      </el-header>
      <el-main>
        <div>
          <slot name="main"> </slot>
          <router-view />
        </div>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import leftNav from "@/components/common/leftNav.vue";
import Header from "@/components/common/Header.vue";
export default {
  name: "Base",
  components: {
    leftNav,
    Header,
  },
};
</script>

<style>
</style>